package appapi.Vo.record;

import appapi.entity.Zhongjiao.EquipmentmaintenanDto;
import appapi.entity.Zhongjiao.MaintenandetailDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/06/03 12:20
 */
@ApiModel
@Data
public class EditMaintenanDetailVo {
    /**
     * 检测项目
     */
    @ApiModelProperty(value = "检测项目")
    private String maintenanName;

    /**
     * 0正常 1异常
     */
    @ApiModelProperty(value = "0正常 1异常")
    private Integer maintenanResult;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String maintenanRemark;

    /**
     * 检测要求
     */
    @ApiModelProperty(value = "检测要求")
    private String maintenanNeed;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    private List<String> Imgs;

    public MaintenandetailDto vo2Entity() {
        MaintenandetailDto entity = new MaintenandetailDto();
        BeanUtils.copyProperties(this, entity);
        return entity;
    }
}
